import type { Monitor } from "@openstatus/tinybird";

import { Tracker } from "./tracker";

export const mockMonitor: Monitor[] = [
  { day: "2024-02-21 00:00:00", count: 762, ok: 762 },
  { day: "2024-02-20 00:00:00", count: 864, ok: 864 },
  { day: "2024-02-19 00:00:00", count: 864, ok: 864 },
  { day: "2024-02-18 00:00:00", count: 834, ok: 834 },
  { day: "2024-02-17 00:00:00", count: 864, ok: 864 },
  { day: "2024-02-16 00:00:00", count: 863, ok: 863 },
  { day: "2024-02-15 00:00:00", count: 862, ok: 862 },
  { day: "2024-02-14 00:00:00", count: 876, ok: 876 },
  { day: "2024-02-13 00:00:00", count: 876, ok: 876 },
  { day: "2024-02-12 00:00:00", count: 882, ok: 882 },
  { day: "2024-02-11 00:00:00", count: 864, ok: 864 },
  { day: "2024-02-10 00:00:00", count: 864, ok: 864 },
  { day: "2024-02-09 00:00:00", count: 846, ok: 846 },
  { day: "2024-02-08 00:00:00", count: 870, ok: 870 },
  { day: "2024-02-07 00:00:00", count: 864, ok: 864 },
  { day: "2024-02-06 00:00:00", count: 864, ok: 864 },
  { day: "2024-02-05 00:00:00", count: 864, ok: 864 },
  { day: "2024-02-04 00:00:00", count: 864, ok: 864 },
  { day: "2024-02-03 00:00:00", count: 858, ok: 858 },
  { day: "2024-02-02 00:00:00", count: 864, ok: 864 },
  { day: "2024-02-01 00:00:00", count: 870, ok: 870 },
  { day: "2024-01-31 00:00:00", count: 864, ok: 864 },
  { day: "2024-01-30 00:00:00", count: 864, ok: 864 },
  { day: "2024-01-29 00:00:00", count: 859, ok: 859 },
  { day: "2024-01-28 00:00:00", count: 860, ok: 860 },
  { day: "2024-01-27 00:00:00", count: 864, ok: 864 },
  { day: "2024-01-26 00:00:00", count: 864, ok: 864 },
  { day: "2024-01-25 00:00:00", count: 864, ok: 864 },
  { day: "2024-01-24 00:00:00", count: 864, ok: 864 },
  { day: "2024-01-23 00:00:00", count: 864, ok: 864 },
  { day: "2024-01-22 00:00:00", count: 864, ok: 864 },
  { day: "2024-01-21 00:00:00", count: 864, ok: 864 },
  { day: "2024-01-20 00:00:00", count: 864, ok: 864 },
  { day: "2024-01-19 00:00:00", count: 864, ok: 864 },
  { day: "2024-01-18 00:00:00", count: 864, ok: 864 },
  { day: "2024-01-17 00:00:00", count: 863, ok: 862 },
  { day: "2024-01-16 00:00:00", count: 795, ok: 795 },
  { day: "2024-01-15 00:00:00", count: 846, ok: 846 },
  { day: "2024-01-14 00:00:00", count: 864, ok: 864 },
  { day: "2024-01-13 00:00:00", count: 852, ok: 852 },
  { day: "2024-01-12 00:00:00", count: 864, ok: 857 },
  { day: "2024-01-11 00:00:00", count: 864, ok: 864 },
  { day: "2024-01-10 00:00:00", count: 865, ok: 864 },
  { day: "2024-01-09 00:00:00", count: 864, ok: 864 },
  { day: "2024-01-08 00:00:00", count: 864, ok: 864 },
  { day: "2024-01-07 00:00:00", count: 671, ok: 671 },
];

const tracker = new Tracker({ data: mockMonitor });
console.log(tracker.totalUptime);
